#import "YHRefreshUtils.h"


@implementation YHRefreshUtils
+ (UIImage *)getImageFromBundle:(NSString *)imageName {
    NSURL *bundleURL = [[NSBundle mainBundle] URLForResource:@"YHRefresh" withExtension:@"bundle"];
    if (bundleURL) {
        NSBundle *bundle = [NSBundle bundleWithURL:bundleURL];
        NSString *imgName = [NSString stringWithFormat:@"%@.png", imageName];
        return [UIImage imageWithContentsOfFile:[bundle pathForResource:imgName ofType:nil]];
    }
    return nil;
}
@end
